navigator.serviceWorker.register('./sw.js', { scope: '/' }).then(registration => {
    console.log(registration)
}, err => {
    console.error(err)
})